package com.czy.moudle.pdm.vo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 数据库表-实体类：元数据信息表
 *
 * @author 陈致远
 */
public class Entity {
    /**
     * 类注释，由table-comment获取
     */
    private String comment;

    /**
     * 类名称，由表名称转换
     */
    private String className;

    /**
     * 表名称
     */
    private String tableName;

    /**
     * 类作者，由配置读取
     *       用于添加注释
     */
    private String ahthor;

    /**
     * 类拥有的属性集合
     */
    private List<Field> columnList;

    /**
     * 扩展属性
     */
    private Map<String,String> extracts = new HashMap<>();

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public List<Field> getColumnList() {
        return columnList;
    }

    public void setColumnList(List<Field> columnList) {
        this.columnList = columnList;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getAhthor() {
        return "陈致远";
    }

    public void setAhthor(String ahthor) {
        this.ahthor = ahthor;
    }

    public Map<String, String> getExtracts() {
        return extracts;
    }

    public void setExtracts(Map<String, String> extracts) {
        this.extracts = extracts;
    }
}
